import request from '@/utils/request'
//获取所有空气质量数据
export const getInfo = () => {
    // console.log('我被调用了');
    return request({
      url:'/findLastData',
      method:'get',
    })
  }
//获取单个空气质量信息
  export const getOneInfo=(field,skuNum)=>{
    return request({
      url:`/findDataByTime/${field}/${skuNum}`,
      method:'get'
    })
  }
//获取单个空气质量信息
export const getSevenData=(field)=>{
  return request({
    url:`/findSevenData/${field}`,
    method:'get'
  })
}